﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemWFH.Domain;

namespace SystemWFH.Infrstructer.Interface
{
    public interface IWorkshopRepository:IBaseRepository<Workshop>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="workshop"></param>
        /// <returns></returns>
        Task<int> AddedAsync(Workshop workshop);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="workshop"></param>
        /// <returns></returns>
        Task<int> UpdateAsync(Workshop workshop);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="workshopId"></param>
        /// <returns></returns>
        Task<int> DeleteAsync(int workshopId);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<List<Workshop>> GetAllAsync();
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteByIdAsync(int id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="workshopId"></param>
        /// <returns></returns>
        Task<Workshop> GetByIdAsync(int workshopId);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="workshopId"></param>
        /// <returns></returns>
        Task<int> WorkshopDeletePi(string workshopId);
    }
}
